<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnImEditedAtInTaskWorkOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task_work_order')
            ->addColumn('im_edited_at','integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => 'Im消息会话修改时间'])
            ->save();
    }

    public function down()
    {
        $this->table('task_work_order')
            ->removeColumn('im_edited_at')
            ->save();
    }
}
